

<div class="clearfix">
    <div class="persons form_prices pull-right">
        <div class="inner_prices">
            <h4><?= lang('no_persons'); ?>:</h4>

            <div class="control-group">

                <label class="control-label details_control_label"><?= lang('dtl.adults') ?> (18+)</label>
                <div class="controls">
                    <select name="nr_adults" id="nr_adults">

                        <?
                        $selected = !isset($_GET['preview']) ? $_GET['nr_adults'] : $default_nr_person;
                        $sel_text = 'selected = "selected"';
                        for ($index = 1; $index <= $adults_person; $index++):
                        ?>

                        <option value = "<?= $index ?>" <? if ($selected == $index) echo $sel_text; ?>><?= $index ?></option>

                        <? endfor; ?>


                    </select>
                </div>
            </div>
            <div class="control-group">
                <label class="control-label details_control_label"><?= lang('dtl.teenagers') ?> (12-18):</label>
                <div class="controls">
                    <select name="nr_teenagers" id="nr_teenagers">
                        <? 
                        $selected = !isset($_GET['preview']) && isset($_GET['nr_teenagers']) ? $_GET['nr_teenagers'] : -1;
                        $sel_text = 'selected = "selected"';
                        for ($index = 0; $index <= 5; $index++): ?>
                        <option value = "<?= $index ?>" <? if ($selected == $index) echo $sel_text; ?>><?= $index ?></option>
                        <? endfor; ?>
                    </select>
                </div>
            </div>
            <div class="control-group">
                <label class="control-label details_control_label"><?= lang('dtl.children') ?> (2-12):</label>
                <div class="controls">
                    <select name="nr_childrens" id="nr_childrens">
                        <? 
                        $selected = !isset($_GET['preview']) && isset($_GET['nr_childrens']) ? $_GET['nr_childrens'] : -1;
                        $sel_text = 'selected = "selected"';
                        for ($index = 0; $index <= 5; $index++): ?>
                        <option value = "<?= $index ?>" <? if ($selected == $index) echo $sel_text; ?>><?= $index ?></option>
                        <? endfor; ?>
                    </select>
                </div>
            </div>
            <div class="control-group">
                <label class="control-label details_control_label"><?= lang('dtl.babies'); ?> (0-2):</label> 
                <div class="controls">
                    <select name="nr_babies" id="nr_babies">
                        <? 
                        $selected = !isset($_GET['preview']) && isset($_GET['nr_babies']) ? $_GET['nr_babies'] : -1;
                        $sel_text = 'selected = "selected"';
                        for ($index = 0; $index <= 5; $index++): ?>
                        <option value = "<?= $index ?>" <? if ($selected == $index) echo $sel_text; ?>><?= $index ?></option>
                        <? endfor; ?>
                    </select>
                </div>
            </div>
        </div>

    </div><!--persons-->

    <div class="basic_service form_prices pull-left">
        <div class="inner_prices">
            <h4><?= lang('basic_service'); ?>:</h4>

            <div class="control-group">
                <label class="checkbox">
                    <input type="radio" checked="checked"> <?= $service_name ?>
                </label>

            </div>

        </div>
    </div><!--basic_service-->

    <div class="dates form_prices pull-left">
        <div class="inner_prices">
            <h4><?= lang('define_date'); ?>:</h4>

            <div class="control-group">
                <label class="control-label details_control_label"><?= lang('define_arrival'); ?>:</label>
                <div class="controls">
                    <input type="text" name="check_in" id="check_in" value="<?= !isset($_GET['preview']) ? $_GET['check_in'] : date('d.m.Y', strtotime("+0 day")) ?>" class="checkinout">
                </div>
            </div>
            <div class="control-group">
                <label class="control-label details_control_label"><?= lang('define_departure'); ?>:</label>
                <div class="controls">
                    <input type="text" name="check_out" id="check_out" value="<?= !isset($_GET['preview']) ? $_GET['check_out'] : date('d.m.Y', strtotime("+1 day")) ?>" class="checkinout">
                </div>
            </div>

        </div>
    </div><!--dates-->

</div>    

<div class="clearfix">

    <div class="form_prices pull-left clatopborder">

        <div class="inner_prices" id="claendar_css">

            <div class="too_many" ></div>

            <div class="cal_border">

                <div id="calendar" class="clearfix"></div>

            </div>

            <div class="cal_legend">
                <ul>
                    <li><span class="f">15</span> <?= lang('available'); ?></li>
                    <li><span class="t">15</span> <?= lang('occupied'); ?></li>
                    <li><span class="s">15</span> <?= lang('selected'); ?></li>

                </ul>

                <div id="instructions"><?= lang('instructions'); ?></div>
            </div>

        </div>
    </div>
</div>

<div class="clearfix">
    <div id="calculation" class="form_prices pull-left calculation2">

        <div class="inner_prices">
            <h4><?= lang('calculation'); ?>:</h4>

            <ul>
                <li class="personas"><?= lang('dtl.num_of_persons'); ?>: <span class="service_persons"><?= lang('dtl.adults'); ?>: <?= !isset($_GET['preview']) ? $_GET['nr_adults'] : $default_nr_person ?>, <?= lang('dtl.teenagers'); ?>: 0, <?= lang('dtl.children'); ?>: 0, <?= lang('dtl.babies'); ?>: 0</span></li>
                <li class="periodes"><?= lang('dtl.period'); ?>: <span class="service_periods"><?= !isset($_GET['preview']) ? $_GET['check_in'] : '' ?> - <?= !isset($_GET['preview']) ? $_GET['check_out'] : '' ?></span></li>
                <li><?= $service_name ?>: <span class="service_total"><?= $service_price ?> </span> <?= lang(currency_sign()); ?></li>

                <?if(isset($tax->included) && $tax->included == 1):?>

                <li><?= lang('city_tax'); ?>: <span class="tax_city"><?= $tax->total->city; ?></span>  <?= lang(currency_sign()); ?></li>
                <li><?= lang('insurance_tax'); ?>: <span class="tax_insurance"><?= $tax->total->insurance; ?></span>  <?= lang(currency_sign()); ?></li>

                <?if($tax->eco != 0):?>

                <li><?= lang('eco_tax'); ?>: <span class="tax_eco"><?= $tax->total->eco; ?></span>  <?= lang(currency_sign()); ?></li>

                <?endif;?>
                <?endif;?>

                <li class="total"><?= lang('total'); ?>: <span><?= $service_total ?> </span> <?= lang(currency_sign()); ?></li>

            </ul>

            <?if(isset($tax->included) && $tax->included == 1):?>
            
            <?else:?>
            <div class="tax">
                <?= lang('dtl.tax_not_included'); ?>
                <? if(isset($tax->included)):?>
                <br>
                <?= lang('city_tax'); ?>: <?= $tax->city ?><?= lang(currency_sign()); ?> (<?= lang('day'); ?>),
                <?= lang('insurance_tax'); ?>: <?= $tax->insurance ?><?= lang(currency_sign()); ?> (<?= lang('day'); ?>)<?if($tax->eco != 0):?>,
                <?= lang('eco_tax'); ?>: <?= $tax->eco ?><?= lang(currency_sign()); ?> (<?= lang('day'); ?>)
                <?endif;?>
                <?endif;?>
            </div>
            <?endif;?>
            
            <div class="vat"><?= lang('vat') ?></div>

        </div>
    </div>
</div><!--calculation-->

<? if (isset($_GET['currency'])): ?>
<input type="hidden" value="<?= $_GET['currency'] ?>" name="currency">
<? endif; ?>